import React, { useContext } from 'react'
import { context } from '../App'

// useCallback, useMemo, useRef  自定义hook
function Com() {
    const { state, dispatch } = useContext(context)
    return (
        <div>
            ComCom --- { state.name }
        </div>
    )
}

export default Com
